package com.youkeyi.ddy.cloud.common.api.basic.pub.corp;

import com.youkeyi.ddy.cloud.common.api.basic.pub.corp.dto.PublicCorpListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.corp.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * PubCorpCloudService
 *
 * @Corpor liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-PUBLIC", fallback = PublicCorpCloudServiceFallback.class)
@RequestMapping("/public/corp")
public interface PublicCorpCloudService {

    /**
     * 查询主体列表.
     *
     * @param param the param
     * @return the uas corp list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract PublicCorpListCloudDto query(@RequestBody PublicCorpQueryCloudParam param);

    /**
     * 新增主体.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody PublicCorpCreateCloudParam param);

    /**
     * 编辑主体.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody PublicCorpUpdateCloudParam param);

    /**
     * 删除主体.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody PublicCorpDeleteCloudParam param);
}
